package com.boodaba.todocarts.domain;

/**
 * To-Do entity.
 */
public class Todo extends DrivenByTitle<Todo> implements IEntity<Todo> {
	
	private boolean mFlagCompleted;
	
	public Todo(String title) {
		setTitle(title);
		raise();
	}
	
	public void complete() {
		mFlagCompleted = true;
	}
	
	public void raise() {
		mFlagCompleted = false;
	}
	
	public boolean isCompleted() {
		return mFlagCompleted;
	}
}